package com.Guo.Service.impl;

import com.Guo.Dao.UserDao;
import com.Guo.Service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Service;

/**
 * @author Admin
 * @project UserServiceimpl
 * @description
 * @date 2020-10-27-10:15
 */
@Service("userService")
public class UserServiceimpl implements UserService {
    @Autowired
    private UserDao dao;

    @Override
    public void addUser() {
        //实现日志打印
       dao.addUser();
        //事务提交
        //异常处理
    }

    @Override
    public void deleteUser() {
        dao.deleteUser();
    }
}
